const state = {
  num: 0
}

// const getters = {
//   globalClick: state => state.click
// }

const actions = {
  setNum ({commit}, paylaod) {
    commit('ADD_NUM', paylaod)
  }
}

const mutations = {
  ADD_NUM (state, payload) {
    state.num = payload
  }
}

export default {
  state,
  actions,
  mutations
}
